//
//  UIButton+HX_.m
//  04-QQMusic
//
//  Created by 韩旭 on 16/7/19.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "UIButton+HX_.h"

@implementation UIButton (HX_)
+ (UIButton *)packWithBtnText:(NSString *)text colorBack:(UIColor *)colorBack frame:(CGRect)frame titleColor:(UIColor *)titleColor action:(SEL)action target:(id)target imageBack:(UIImage *)imageBack {
    
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    [btn setImage:imageBack forState:UIControlStateNormal];
    [btn setTitle:text forState:UIControlStateNormal];
    [btn setTitleColor:titleColor forState:UIControlStateNormal];
    btn.frame = frame;
    btn.backgroundColor = colorBack;
    [btn addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
    return btn;
}

@end
